using CMS.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CMS.EFCore.Config;

public class ImageServerConfig : IEntityTypeConfiguration<ImageServer> {
    public void Configure(EntityTypeBuilder<ImageServer> builder) {
        builder.Property(i => i.ServerUrl).HasMaxLength(200).IsRequired();
        builder.Property(i => i.ServerName).HasMaxLength(100).IsRequired();
    }
}